home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1995 #2 / Amiga Plus CD - 1995 - No. 2.iso / internet / faq / englisch / how_to_construct_mailpaths < prev    next >
Encoding:
Text File  |  1995-04-11  |  7.6 KB  |  152 lines

  1. Archive-name: mailpaths/part1
  2. Original-author: Gene Spafford (spaf@cs.purdue.edu)
  3. Comment: enhanced & edited until 5/93 by spaf@cs.purdue.edu (Gene Spafford)
  4. Last-change: 28 Jun 1994 by tale@uunet.uu.net (David C Lawrence)
  5.  
  6. UNIX News software after B-news version 2.10 -- including C news and INN --
  7. has been designed to make it simpler to submit articles to moderated
  8. newsgroups and to reply via mail to posted articles.  For these
  9. functions to work, the file "mailpaths" must exist in the news library
  10. and contain current information.  This file describes the syntax of
  11. the contents of the file and how to construct it for your B News or C
  12. News system.
  13.  
  14. INN's method is described in the moderators(5) and inn.conf(5) manual
  15. pages; if you do not have locally moderated groups to worry about it
  16. is probably easiest to simply define moderatormailer in inn.conf as
  17. one of the machines listed below.
  18.  
  19. Some systems may not work in precisely the manner described here.  In
  20. particular, some user-agent programs may consult a file of moderator
  21. addresses directly.  The system news administrator should consult the
  22. documentation and man pages to determine if this description applies
  23. to the local configuration and modify it accordiningly.
  24.  
  25. You can test submissions to moderated newsgroups by posting to the
  26. newsgroup misc.test.moderated.  If your article successfully reached
  27. the moderator of the group then you should receive an automated reply
  28. back confirming the appearance of your message.  There is also a
  29. regular posting in the group that shows the apparent source of
  30. submissions, which may help in diagnosing why your mail was not returned.
  31.  
  32. Syntax
  33. ------
  34. All lines in the file consist of a keyword followed by whitespace,
  35. followed by a printf-style format string which is used to encode a mail
  36. address.  The format string should be constructed so that there is a
  37. single "%s" in the field, and other information necessary to construct
  38. a valid address to the appropriate site (see below).
  39.  
  40. The keyword field consists of either the word "internet", the word
  41. "backbone", or some newsgroup pattern.  These are examined by the
  42. software to determine which format-string to use.  Note that the FIRST
  43. appropriate line matched is the one used -- thus, the "backbone"
  44. keyword line should be placed last in the line if regional or local
  45. moderated groups are supported.
  46.  
  47. Also note that the match software quits if it runs out of newsgroup
  48. pattern, and if the pattern present matches the newsgroup.  Thus,
  49. having the entries:
  50.     comp.foo        foo@nowhere.edu
  51.     comp.foo.bar    bar@someplace.org
  52. would always send mail to the moderator of "comp.foo" and not to the
  53. moderator of "comp.foo.bar", no matter which of the two newsgroups was
  54. specified!   For proper operation, you would need to list them thusly:
  55.     comp.foo.bar    bar@someplace.org
  56.     comp.foo        foo@nowhere.edu
  57.  
  58. Addresses that end up with both "!" and "@" symbols in the resulting
  59. address get converted so that only "!" symbols appear in the final
  60. address.  An address of the form "foo!bar!baz@barf" will get converted
  61. to "foo!bar!barf!baz" and then mailed.  This should work properly, for
  62. "dumb" mailers but you should test it to make sure; "smart" mailers
  63. should have the format fields encoded as a simple "%s". Note that *any*
  64. address with more than a single "@" in it is illegal.
  65.  
  66. Submissions to moderated groups
  67. -------------------------------
  68. When you attempt to post to a moderated newsgroup (indicated by the
  69. letter "m" in the 4th field of the "active" file for that group), 
  70. the action of "inews" is to mail the submission to the moderator.
  71. This is done by searching through "mailpaths" file for a keyword
  72. matching the newsgroup being posted to, or, by default, the keyword
  73. "backbone".  Matching occurs as in the "sys" file -- thus,
  74. "world" and "all" will also match everything, while "news" or 
  75. "news.all" will only match articles posted in the "news" category.
  76. This feature can be used to support local moderated groups.
  77.  
  78. Once a line has been matched, the name of the moderated group is
  79. transformed into an address.  This is done by first turning all the
  80. imbedded periods within the newsgroup name into hyphens (e.g.,
  81. "news.lists" becomes "news-lists") because many mailers mishandle
  82. addresses with periods in the username (periods are supposed to be
  83. delimiters only in the host/domain part of RFC822 addresses, but some
  84. mailers "overreact").  Next, the transformed group name is encoded into
  85. an address using the format-string present on the line matched from
  86. "mailpaths" and the article is mailed.  Thus, a posting to "news.lists"
  87. from a site with the line
  88.     backbone        emory!gatech!%s 
  89. in the mailpaths file would have the article mailed to
  90. "emory!gatech!news-lists".  Likewise, a line like
  91.     backbone    %s@gatech.edu
  92. would result in the article being mailed to "news-lists@gatech.edu".
  93. To make the mechanism for moderated postings simpler, a subset of the 
  94. best-connected sites (plus some others) have committed to keeping a complete
  95. up-to-date set of mail aliases for the moderated groups.  Therefore, to
  96. build this line in your "mailpaths" file, you need only construct
  97. an address to get the mail to one of these sites.  In turn, once the
  98. submission reaches that site, it will be forwarded on to the
  99. appropriate moderator's mailbox.
  100.  
  101. The sites currently maintaining these lists are given in the following
  102. list.  Pick the one that is "closest" to your site and use it in your
  103. "backbone" format string:
  104.  
  105.     ames.arc.nasa.gov        beaver.cs.washington.edu  cis.ohio-state.edu
  106.     decwrl.dec.com           linus.mitre.org           math.waterloo.edu
  107.     moderators.univ-lyon1.fr nac.no                    ncren.net
  108.     pipex.co.uk              rutgers.edu               tektronix.tek.com
  109.     ucsd.edu                 usenet.ufl.edu            uunet.uu.net
  110.  
  111. All EUnet customers should use their feeding EUnet news server as
  112. 'backbone' for posts to moderated groups.  For example, German EUnet
  113. customers would use news.germany.eu.net.  Non-EUnet sites in Europe
  114. may forward through pipex.co.uk (aka pipex.net).
  115.  
  116. The hostname moderators.uu.net is a pointer to all of the above sites.
  117. It is recommended that it be used rather than depending on any one of
  118. the sites all of the time.
  119.  
  120. Internet Mail
  121. -------------
  122. If you define the "INTERNET" flag when you build 2.11 news, the
  123. software will use the internet-style "From:" header when addressing
  124. replies mailed to postings.  If your mailer does not have this capability,
  125. you can still (possibly) achieve the same thing by defining the
  126. "internet" line in your "mailpaths" file to forward such mail to
  127. a host that does have a mailer which understands internet-style addresses.
  128.  
  129. The format of this line is very similar to the "backbone" line.  As an
  130. example, consider:
  131.     internet    emory!gatech!mcnc!%s
  132. Thus, if "INTERNET" was defined when this version of news was built,
  133. any reply to a news article would not travel along the "Path:", but
  134. would instead be sent to "mcnc" for interpretation and remailing.
  135. For example, to reply to this article, the mail would be sent to
  136. "emory!gatech!mcnc!tale@uunet.uu.net"  ->
  137. "emory!gatech!mcnc!uunet.uu.net!tale"
  138.  
  139. Note:  This is being provided as a service to sites which do not
  140. have routing mailers or which have difficulty replying to articles.
  141. It is *NOT* intended for everyone to pass mail to other sites to send.
  142. Excessive use of this feature may result in severe problems for
  143. the sites doing the relaying, so please simply define this field to
  144. be "%s" if your mailer understands domain-style (internet-style)
  145. addressing.
  146.  
  147. The following sites will accept internet-format mail for forwarding:
  148.  
  149.     beaver.cs.washington.edu    decwrl.dec.com  kddlab.kddlabs.co.jp
  150.     math.waterloo.edu           ncren.net       ucsd.edu
  151.     uunet.uu.net
  152.